﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Objects;
using System.Data.Entity.ModelConfiguration;
using System.Reflection;

namespace Nano.Core
{
    public partial class DataContext : DbContext
    {
        public ObjectContext GetObjectContext()
        {
            return this.ObjectContext;
        }

        public DbSet<Page> Pages { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Page>().MapSingleType().ToTable("Page");
        }
    }
}